#ifndef JINPUTCONTEXTWIDGET_H
#define JINPUTCONTEXTWIDGET_H

#include <QWidget>
#include <QTECore/JSingleton>
#include "qtevirtualkeyboardglobal.h"

namespace QTE
{

class Q_DECL_HIDDEN JInputContextWidget : public QWidget
{
	Q_OBJECT
	J_PERMANENT_SINGLETON(JInputContextWidget)

public slots:
	void predicts(QObject *focusObject);
	void setNumberKeyboardLock(bool flag);

Q_SIGNALS:
	void input(QKeyEvent *event);
	void panelChanged();
	void autoPredicts();

protected:
	void showEvent(QShowEvent *event) override;
	void resizeEvent(QResizeEvent *event) override;
	bool eventFilter(QObject *object, QEvent *event) override;
};

} //namespace QTE


#endif //JINPUTCONTEXTWIDGET_H
